﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YiLe.BLL.Service;
using YiLe.DAL.Dao;

namespace YiLe.BLL.ServiceImpl
{
    public class Xs_TableService : IXs_TableService
    {
        private Xs_TableDao tableDao;

        public Xs_TableDao TableDao
        {
            get { return tableDao; }
            set { tableDao = value; }
        }

        public Model.Domain.Xs_Table Get(int id)
        {
            return tableDao.Get(id);
        }

        public IList<Model.Domain.Xs_Table> GetAll()
        {
            return tableDao.GetAll();
        }

        public int Save(Model.Domain.Xs_Table entity)
        {
            return tableDao.Save(entity);
        }

        public void Update(Model.Domain.Xs_Table entity)
        {
            tableDao.Update(entity);
        }

        public void Delete(Model.Domain.Xs_Table entity)
        {
            tableDao.Delete(entity);
        }
    }
}
